import { ref, onMounted } from 'vue'
import { defineStore } from 'pinia'
import axios from "axios"

export const useRightStore = defineStore('right', () => {

    onMounted(() => getList())

    const Menulist = ref({})

    const getList = async () => {
        let res = await axios.get("/adminapi/rights")
        Menulist.value = res.data
    }

    return { Menulist }
})
